<template>
    <div id="message" v-show="visible">

        <div class="message-container">
            <div class="message-container-message">
                {{message}}
            </div>
        </div>
        
    </div>
</template>

<script>
export default {
    data() {
        return {
            message:"",
            visible:false
        }
    },
}
</script>

<style lang="scss">
#message{
    width:100vw;
    height:100vh;
    font-size: 0.28rem;
    position: fixed;
    left: 0;
    top: 0;
    // background-color: rgba(0,0,0,0.4);
    z-index: 999;
    .message-container{
        width: 100%;
        height: 100%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        .message-container-message{
            width:2.4rem;
            // height:2.4rem;
            text-align: center;
            padding:1.2rem 0 0.8rem 0;
            border-radius: 5px;
            // background-color: rgba(230,230,230,0.7);
            color:#fff;
            background-color: rgba(0,0,0,0.65);
        }
    }
} 
</style>